package java46_002;

import java.util.Scanner;

public class T9_25_2 {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		System.out.println("请输入第一个数字:");
		int a = input.nextInt();
		System.out.println("请输入第二个数字:");
		int b = input.nextInt();
		System.out.println("请输入第三个数字:");
		int c = input.nextInt();
		
		int i = ((a < b ? a : b) < c ? (a < b ? a : b) : c);
		int l = ((a > b ? a : b) > c ? (a > b ? a : b) : c);
		
		int j = ((a > i && a < l) ? a : (b > i && b <l) ? b : c);
		
		System.out.println("三个数从小到大排列为:" + i + " " + j + " " + l );
		
	}

}
